package ex.com.jm.food.service.impl;

import java.util.List;

import ex.com.jm.food.dao.CompanyIndexDao;
import ex.com.jm.food.entity.CompanyProfitSummary;
import ex.com.jm.food.service.CompanyIndexService;

public class CompanyIndexServiceImpl implements CompanyIndexService {

	private CompanyIndexDao companyIndexDao;
	public CompanyIndexDao getCompanyIndexDao() {
		return companyIndexDao;
	}

	public void setCompanyIndexDao(CompanyIndexDao companyIndexDao) {
		this.companyIndexDao = companyIndexDao;
	}

	@Override
	public List<CompanyProfitSummary> getCPS(String comId, String s_date,
			String e_date) {
		// TODO Auto-generated method stub
		return this.getCompanyIndexDao().getCPS(comId, s_date, e_date);
	}

	

	@Override
	public List<CompanyProfitSummary> getComCPS(int initPage, int pageRow,
			String comId, String s_date, String e_date, String order,
			String sort) {
		// TODO Auto-generated method stub
		return this.getCompanyIndexDao().getComCPS(initPage, pageRow, comId, s_date, e_date, order, sort);
	}

	@Override
	public int cpsCount(String comId, String s_date, String e_date) {
		// TODO Auto-generated method stub
		return this.getCompanyIndexDao().cpsCount(comId, s_date, e_date);
	}

}
